package com.inifitness.admin.core.system.model.entity;


import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.inifitness.common.basic.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统管理-事件信息实体类
 *
 * @author
 * @since 2024-05-31 13:45:02
 */

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "sys_event", autoResultMap = true)
public class SysEvent extends BaseEntity {

  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @TableField(value = "name")
  private String name;

  @TableField(value = "code")
  private String code;

  @TableField(value = "sort")
  private Integer sort;

  @TableField(value = "status")
  private Integer status;

  @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updateTime;

  @TableField(value = "deleted", fill = FieldFill.INSERT)
  @TableLogic(value = "0", delval = "1")
  private Integer deleted;

  @TableField(value = "create_by", fill = FieldFill.INSERT)
  private String createBy;

  @TableField(value = "create_time", fill = FieldFill.INSERT)
  private LocalDateTime createTime;

  @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
  private String updateBy;

}
